2021-09-07 00:42:41 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
|
|
|
<!--
|
|
|
|
Copyright 2021 Akretion France (http://www.akretion.com/)
|
|
|
|
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
2022-05-26 16:26:12 +02:00
|
|
|
@author: Moisés López <moylop260@vauxoo.com>
|
|
|
|
@author: Francisco Luna <fluna@vauxoo.com>
|
2021-09-07 00:42:41 +02:00
|
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
-->
|
|
|
|
<odoo>
|
|
|
|
|
2021-09-08 14:21:43 +02:00
|
|
|
<record id="view_account_journal_form" model="ir.ui.view">
|
|
|
|
<field name="model">account.journal</field>
|
|
|
|
<field name="inherit_id" ref="account.view_account_journal_form" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="refund_sequence" position="before">
|
|
|
|
<field
|
2021-09-07 00:42:41 +02:00
|
|
|
name="sequence_id"
|
2022-05-13 19:14:30 +02:00
|
|
|
required="1"
|
2022-05-05 17:18:14 +02:00
|
|
|
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/'}"
|
2021-09-07 00:42:41 +02:00
|
|
|
/>
|
2021-09-08 14:21:43 +02:00
|
|
|
</field>
|
|
|
|
<field name="refund_sequence" position="after">
|
|
|
|
<field
|
2021-09-07 00:42:41 +02:00
|
|
|
name="refund_sequence_id"
|
2022-05-13 19:14:30 +02:00
|
|
|
attrs="{'invisible': ['|', ('type', 'not in', ('sale', 'purchase')), ('refund_sequence', '=', False)],
|
|
|
|
'required': [('type', 'in', ('sale', 'purchase')), ('refund_sequence', '=', True)]}"
|
2022-05-05 17:18:14 +02:00
|
|
|
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/'}"
|
2021-09-07 00:42:41 +02:00
|
|
|
/>
|
2021-09-08 14:21:43 +02:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2021-09-07 00:42:41 +02:00
|
|
|
|
2021-09-08 14:21:43 +02:00
|
|
|
</odoo>
|