[MIG] account_journal_general_sequence: v16 modifications
@moduon MT-1921
This commit is contained in:
parent
dc7dce11bb
commit
a6cbbed493
@ -3,7 +3,7 @@
|
|||||||
{
|
{
|
||||||
"name": "General sequence in account journals",
|
"name": "General sequence in account journals",
|
||||||
"summary": "Add configurable sequence to account moves, per journal",
|
"summary": "Add configurable sequence to account moves, per journal",
|
||||||
"version": "15.0.1.0.4",
|
"version": "16.0.1.0.0",
|
||||||
"category": "Accounting/Accounting",
|
"category": "Accounting/Accounting",
|
||||||
"website": "https://github.com/OCA/account-financial-tools",
|
"website": "https://github.com/OCA/account-financial-tools",
|
||||||
"author": "Moduon, Odoo Community Association (OCA)",
|
"author": "Moduon, Odoo Community Association (OCA)",
|
||||||
|
@ -14,10 +14,10 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</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="name">Add move number to tree</field>
|
||||||
<field name="model">account.move.line</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="arch" type="xml">
|
||||||
<field name="move_id" position="after">
|
<field name="move_id" position="after">
|
||||||
<field name="entry_number" optional="show" />
|
<field name="entry_number" optional="show" />
|
||||||
|
@ -79,5 +79,5 @@ class AccountMoveRenumberWizard(models.TransientModel):
|
|||||||
self.sequence_id.sudo().number_next = self.starting_number
|
self.sequence_id.sudo().number_next = self.starting_number
|
||||||
# Renumber the moves
|
# Renumber the moves
|
||||||
moves.entry_number = False
|
moves.entry_number = False
|
||||||
moves.flush(["entry_number"])
|
moves.flush_recordset(["entry_number"])
|
||||||
moves._compute_entry_number()
|
moves._compute_entry_number()
|
||||||
|
Loading…
Reference in New Issue
Block a user