mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
Use strings on fields compute to allow inheritance
This commit is contained in:
committed by
AaronHForgeFlow
parent
c637de985e
commit
678ca66c1e
@@ -63,14 +63,16 @@ class RmaOrder(models.Model):
|
||||
comodel_name='res.partner', string='Partner', required=True)
|
||||
rma_line_ids = fields.One2many('rma.order.line', 'rma_id',
|
||||
string='RMA lines')
|
||||
in_shipment_count = fields.Integer(compute=_compute_in_shipment_count,
|
||||
in_shipment_count = fields.Integer(compute='_compute_in_shipment_count',
|
||||
string='# of Invoices')
|
||||
out_shipment_count = fields.Integer(compute=_compute_out_shipment_count,
|
||||
out_shipment_count = fields.Integer(compute='_compute_out_shipment_count',
|
||||
string='# of Outgoing Shipments')
|
||||
line_count = fields.Integer(compute=_compute_line_count,
|
||||
line_count = fields.Integer(compute='_compute_line_count',
|
||||
string='# of Outgoing Shipments')
|
||||
supplier_line_count = fields.Integer(compute=_compute_supplier_line_count,
|
||||
string='# of Outgoing Shipments')
|
||||
supplier_line_count = fields.Integer(
|
||||
compute='_compute_supplier_line_count',
|
||||
string='# of Outgoing Shipments'
|
||||
)
|
||||
company_id = fields.Many2one('res.company', string='Company',
|
||||
required=True, default=lambda self:
|
||||
self.env.user.company_id)
|
||||
|
||||
Reference in New Issue
Block a user