[FIX] account: default account in form
The default account was never set when adding a new line because the key was missing from overriden context closes odoo/odoo#49583 X-original-commit: a0f0b5e4f3e569e6bb217c1243a705e180970219 Signed-off-by: wan <william-andre@users.noreply.github.com> Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
This commit is contained in:
@@ -681,7 +681,7 @@
|
||||
<field name="invoice_line_ids"
|
||||
widget="section_and_note_one2many"
|
||||
mode="tree,kanban"
|
||||
context="{'journal_id': journal_id, 'default_partner_id': commercial_partner_id, 'default_currency_id': currency_id != company_currency_id and currency_id or False}">
|
||||
context="{'default_move_type': context.get('default_move_type'), 'journal_id': journal_id, 'default_partner_id': commercial_partner_id, 'default_currency_id': currency_id != company_currency_id and currency_id or False}">
|
||||
<tree editable="bottom" string="Journal Items" default_order="sequence, date desc, move_name desc, id">
|
||||
<control>
|
||||
<create name="add_line_control" string="Add a line"/>
|
||||
@@ -879,7 +879,7 @@
|
||||
<span>This entry has been generated through the Invoicing app, before installing Accounting. Its balance has been imported separately.</span>
|
||||
</div>
|
||||
<field name="line_ids"
|
||||
context="{'line_ids': line_ids, 'journal_id': journal_id, 'default_partner_id': commercial_partner_id, 'default_currency_id': currency_id != company_currency_id and currency_id or False}"
|
||||
context="{'default_move_type': context.get('default_move_type'), 'line_ids': line_ids, 'journal_id': journal_id, 'default_partner_id': commercial_partner_id, 'default_currency_id': currency_id != company_currency_id and currency_id or False}"
|
||||
attrs="{'invisible': [('payment_state', '=', 'invoicing_legacy'), ('move_type', '!=', 'entry')]}">
|
||||
<tree editable="bottom" string="Journal Items" decoration-muted="display_type in ('line_section', 'line_note')" default_order="sequence, date desc, move_name desc, id">
|
||||
<!-- Displayed fields -->
|
||||
|
||||
Reference in New Issue
Block a user