2
0

[MIG] account_journal_general_sequence: v16 modifications

@moduon MT-1921
This commit is contained in:
Jairo Llopis 2022-12-23 10:47:11 +00:00
parent dc7dce11bb
commit a6cbbed493
No known key found for this signature in database
GPG Key ID: E47E3BE44B940490
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@
{
"name": "General sequence in account journals",
"summary": "Add configurable sequence to account moves, per journal",
"version": "15.0.1.0.4",
"version": "16.0.1.0.0",
"category": "Accounting/Accounting",
"website": "https://github.com/OCA/account-financial-tools",
"author": "Moduon, Odoo Community Association (OCA)",

View File

@ -14,10 +14,10 @@
</field>
</record>
<record id="view_move_line_tree_grouped" model="ir.ui.view">
<record id="view_move_line_tree" model="ir.ui.view">
<field name="name">Add move number to tree</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_tree_grouped" />
<field name="inherit_id" ref="account.view_move_line_tree" />
<field name="arch" type="xml">
<field name="move_id" position="after">
<field name="entry_number" optional="show" />

View File

@ -79,5 +79,5 @@ class AccountMoveRenumberWizard(models.TransientModel):
self.sequence_id.sudo().number_next = self.starting_number
# Renumber the moves
moves.entry_number = False
moves.flush(["entry_number"])
moves.flush_recordset(["entry_number"])
moves._compute_entry_number()