fields labels
This commit is contained in:
parent
7c817ee743
commit
f4f85b3241
@ -29,9 +29,9 @@
|
|||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'depends': ['account_accountant', 'analytic'],
|
'depends': ['account_accountant', 'analytic'],
|
||||||
'data': [
|
'data': [
|
||||||
'move_template.xml',
|
|
||||||
'wizard/select_template.xml',
|
|
||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
|
'views/move_template.xml',
|
||||||
|
'wizard/select_template.xml',
|
||||||
],
|
],
|
||||||
'test': [
|
'test': [
|
||||||
'test/generate_move.yml',
|
'test/generate_move.yml',
|
||||||
|
@ -20,23 +20,28 @@
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|
||||||
<record id="view_move_template_line_form" model="ir.ui.view">
|
<record id="view_move_template_line_form" model="ir.ui.view">
|
||||||
<field name="name">account.move.template.line.form</field>
|
<field name="name">account.move.template.line.form</field>
|
||||||
<field name="model">account.move.template.line</field>
|
<field name="model">account.move.template.line</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Journal Entry Template Line">
|
<form string="Journal Entry Template Line">
|
||||||
<field colspan="4" name="name" select="1"/>
|
<group>
|
||||||
<field name="sequence"/>
|
<group>
|
||||||
<field name="journal_id"/>
|
<field name="name" select="1"/>
|
||||||
<field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
<field name="sequence"/>
|
||||||
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
|
<field name="journal_id"/>
|
||||||
<field name="type"/>
|
<field name="account_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
||||||
<field name="move_line_type"/>
|
<field name="analytic_account_id" groups="analytic.group_analytic_accounting"/>
|
||||||
<field name="account_tax_id"/>
|
</group>
|
||||||
<separator string="Python Code" colspan="4"/>
|
<group>
|
||||||
<field name="python_code" colspan="4" attrs="{'readonly': [('type', '!=', 'computed')]}" nolabel="1"/>
|
<field name="type"/>
|
||||||
<label string="You can refer to other lines using their sequence number (e.g. 'L(1)' for first line). Examples of code: 'L(1) * 0.2'; 'L(2) - L(1)'; 'L(1) + L(2) + L(3)'; '1250'" colspan="4"/>
|
<field name="move_line_type"/>
|
||||||
|
<field name="account_tax_id"/>
|
||||||
|
</group>
|
||||||
|
<separator string="Python Code" colspan="4"/>
|
||||||
|
<field name="python_code" colspan="4" attrs="{'readonly': [('type', '!=', 'computed')]}" nolabel="1"/>
|
||||||
|
<label string="You can refer to other lines using their sequence number (e.g. 'L(1)' for first line). Examples of code: 'L(1) * 0.2'; 'L(2) - L(1)'; 'L(1) + L(2) + L(3)'; '1250'" colspan="4"/>
|
||||||
|
</group>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@ -46,11 +51,13 @@
|
|||||||
<field name="model">account.move.template</field>
|
<field name="model">account.move.template</field>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Journal Entry Template">
|
<form string="Journal Entry Template">
|
||||||
<field name="name"/>
|
<group>
|
||||||
<field name="company_id" widget='selection' groups="base.group_multi_company"/>
|
<field name="name"/>
|
||||||
<field name="cross_journals" />
|
<field name="company_id" widget='selection' groups="base.group_multi_company"/>
|
||||||
<field name="transitory_acc_id" attrs="{'invisible':[('cross_journals','!=',True)],'required':[('cross_journals','==',True)]}"/>
|
<field name="cross_journals" />
|
||||||
<field colspan="4" nolabel="1" name="template_line_ids"/>
|
<field name="transitory_acc_id" attrs="{'invisible':[('cross_journals','!=',True)],'required':[('cross_journals','==',True)]}"/>
|
||||||
|
<field colspan="4" nolabel="1" name="template_line_ids"/>
|
||||||
|
</group>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
@ -87,8 +94,10 @@
|
|||||||
<field name="view_mode">tree,form</field>
|
<field name="view_mode">tree,form</field>
|
||||||
<field name="search_view_id" ref="view_move_template_search"/>
|
<field name="search_view_id" ref="view_move_template_search"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<menuitem
|
<menuitem
|
||||||
action="action_move_template_form" id="menu_action_move_template_form" sequence="5"
|
action="action_move_template_form" id="menu_action_move_template_form" sequence="5"
|
||||||
parent="account.menu_configuration_misc" groups="account.group_account_manager"/>
|
parent="account.menu_configuration_misc" groups="account.group_account_manager"/>
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
Loading…
x
Reference in New Issue
Block a user