16.0 done sale order update issue #1

Merged
stephansainleger merged 2 commits from 16.0-done-sale-order-update-issue into 16.0 2025-06-05 12:48:08 +00:00
2 changed files with 8 additions and 3 deletions
Showing only changes of commit cb302a30b4 - Show all commits

View File

@@ -17,6 +17,10 @@ class EventRegistrationFinancier(models.Model):
financier_id = fields.Many2one('res.partner', string="Financeur", required=True)
terms = fields.Char('Modalités')
amount = fields.Monetary('Montant', currency_field="company_currency_id")
state = fields.Selection(
related='quotation_id.state',
string="Order Status",
copy=False, store=True, precompute=True)
def get_product_id(self):

View File

@@ -10,8 +10,9 @@
<group name="quotation" string="Financement" colspan="1">
<field name="financier_ids" nolabel="1" colspan="2">
<tree editable="bottom">
<field name="financier_id" />
<field name="amount" />
<field name="state" invisible="1"/>
<field name="financier_id" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}"/>
<field name="amount" attrs="{'readonly': [('state', 'in', ['done', 'cancel'])]}" />
<field name="terms" />
<field name="quotation_id" readonly="True" />
</tree>