Allow purchase without payment term

issue4286
review18101002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-05-17 09:52:17 +02:00
1 parent 78aa632b00
commit 263bf7b6e6
2 files changed
+2 -2

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
* Allow purchase without payment term
Version 4.0.0 - 2016-05-02
* Bug fixes (see mercurial logs for details)
* Rename Purchase reference into number and supplier reference into reference
-2
View File
@@ -69,7 +69,6 @@ class Purchase(Workflow, ModelSQL, ModelView, TaxableMixin):
payment_term = fields.Many2One('account.invoice.payment_term',
'Payment Term', states={
'readonly': ~Eval('state').in_(['draft', 'quotation']),
'required': ~Eval('state').in_(['draft', 'quotation', 'cancel']),
},
depends=['state'])
party = fields.Many2One('party.party', 'Party', required=True,
@@ -191,7 +190,6 @@ class Purchase(Workflow, ModelSQL, ModelView, TaxableMixin):
'quote': {
'pre_validate': [
('purchase_date', '!=', None),
('payment_term', '!=', None),
('invoice_address', '!=', None),
],
'invisible': Eval('state') != 'draft',