fix: se limpia la casa
This commit is contained in:
parent
6565be82a2
commit
dcd88381ee
7
sale.py
7
sale.py
@ -14,7 +14,6 @@ from trytond.i18n import gettext
|
|||||||
from trytond.exceptions import UserError
|
from trytond.exceptions import UserError
|
||||||
from trytond.modules.currency.fields import Monetary
|
from trytond.modules.currency.fields import Monetary
|
||||||
|
|
||||||
from trytond.exceptions import UserError
|
|
||||||
|
|
||||||
__all__ = ['Sale', 'SalePaymentForm', 'WizardSalePayment',
|
__all__ = ['Sale', 'SalePaymentForm', 'WizardSalePayment',
|
||||||
'WizardSaleReconcile']
|
'WizardSaleReconcile']
|
||||||
@ -26,13 +25,13 @@ class Sale(metaclass=PoolMeta):
|
|||||||
paid_amount = fields.Function(fields.Numeric('Paid Amount', readonly=True),
|
paid_amount = fields.Function(fields.Numeric('Paid Amount', readonly=True),
|
||||||
'get_paid_amount')
|
'get_paid_amount')
|
||||||
residual_amount = fields.Function(fields.Numeric('Residual Amount'),
|
residual_amount = fields.Function(fields.Numeric('Residual Amount'),
|
||||||
'get_residual_amount', searcher='search_residual_amount')
|
'get_residual_amount',
|
||||||
|
searcher='search_residual_amount')
|
||||||
sale_device = fields.Many2One('sale.device', 'Sale Device',
|
sale_device = fields.Many2One('sale.device', 'Sale Device',
|
||||||
domain=[('shop', '=', Eval('shop'))],
|
domain=[('shop', '=', Eval('shop'))],
|
||||||
depends=['shop'], states={
|
depends=['shop'], states={
|
||||||
'readonly': Eval('state') != 'draft',
|
'readonly': Eval('state') != 'draft',
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def __setup__(cls):
|
def __setup__(cls):
|
||||||
|
Loading…
Reference in New Issue
Block a user