mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
@@ -12,7 +12,7 @@
|
||||
"license": "AGPL-3",
|
||||
"summary": "Generate journal entry number from sequence",
|
||||
"author": "Akretion,Vauxoo,Odoo Community Association (OCA)",
|
||||
"maintainers": ["alexis-via", "moylop260", "frahikLV"],
|
||||
"maintainers": ["alexis-via", "moylop260", "luisg123v"],
|
||||
"website": "https://github.com/OCA/account-financial-tools",
|
||||
"depends": [
|
||||
"account",
|
||||
@@ -22,8 +22,8 @@
|
||||
"demo/account_journal_demo.xml",
|
||||
],
|
||||
"data": [
|
||||
"views/account_journal.xml",
|
||||
"views/account_move.xml",
|
||||
"views/account_journal_views.xml",
|
||||
"views/account_move_views.xml",
|
||||
"security/ir.model.access.csv",
|
||||
],
|
||||
"post_init_hook": "create_journal_sequences",
|
||||
|
||||
@@ -16,7 +16,14 @@
|
||||
<field
|
||||
name="sequence_id"
|
||||
required="1"
|
||||
context="{'default_name': name, 'default_company_id': company_id, 'default_implementation': 'no_gap', 'default_padding': 4, 'default_use_date_range': True, 'default_prefix': (code or 'UNKNOWN') + '/%%(range_year)s/'}"
|
||||
context="{
|
||||
'default_name': name,
|
||||
'default_company_id': company_id,
|
||||
'default_implementation': 'no_gap',
|
||||
'default_padding': 4,
|
||||
'default_use_date_range': True,
|
||||
'default_prefix': (code or 'UNKNOWN') + '/%%(range_year)s/'
|
||||
}"
|
||||
/>
|
||||
</field>
|
||||
<field name="refund_sequence" position="after">
|
||||
@@ -24,7 +31,14 @@
|
||||
name="refund_sequence_id"
|
||||
attrs="{'invisible': ['|', ('type', 'not in', ('sale', 'purchase')), ('refund_sequence', '=', False)],
|
||||
'required': [('type', 'in', ('sale', 'purchase')), ('refund_sequence', '=', True)]}"
|
||||
context="{'default_name': name, 'default_company_id': company_id, 'default_implementation': 'no_gap', 'default_padding': 4, 'default_use_date_range': True, 'default_prefix': 'R' + (code or 'UNKNOWN') + '/%%(range_year)s/'}"
|
||||
context="{
|
||||
'default_name': name,
|
||||
'default_company_id': company_id,
|
||||
'default_implementation': 'no_gap',
|
||||
'default_padding': 4,
|
||||
'default_use_date_range': True,
|
||||
'default_prefix': 'R' + (code or 'UNKNOWN') + '/%%(range_year)s/'
|
||||
}"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
Reference in New Issue
Block a user