Fix guidelines
This commit is contained in:
1 parent
7457e87e34
commit
57fdad9ca7
5 files changed
+263
-244
No files matched your search
@@ -62,6 +62,9 @@ Con las posibilidades de:
|
||||
],
|
||||
'xml': [
|
||||
'invoice.xml',
|
||||
'payment_term.xml',
|
||||
'party.xml',
|
||||
'account.xml',
|
||||
],
|
||||
'translation': [
|
||||
'fr_FR.csv',
|
||||
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="fiscalyear_view_form">
|
||||
<field name="model">account.fiscalyear</field>
|
||||
<field name="inherit" ref="account.fiscalyear_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id="sequences"]/field[@name="post_move_sequence"]"
|
||||
position="after">
|
||||
<newline/>
|
||||
<label name="out_invoice_sequence"/>
|
||||
<field name="out_invoice_sequence"/>
|
||||
<label name="in_invoice_sequence"/>
|
||||
<field name="in_invoice_sequence"/>
|
||||
<label name="out_credit_note_sequence"/>
|
||||
<field name="out_credit_note_sequence"/>
|
||||
<label name="in_credit_note_sequence"/>
|
||||
<field name="in_credit_note_sequence"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="period_view_form">
|
||||
<field name="model">account.period</field>
|
||||
<field name="inherit" ref="account.period_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/field[@name="post_move_sequence"]"
|
||||
position="after">
|
||||
<newline/>
|
||||
<label name="out_invoice_sequence"/>
|
||||
<field name="out_invoice_sequence"/>
|
||||
<label name="in_invoice_sequence"/>
|
||||
<field name="in_invoice_sequence"/>
|
||||
<label name="out_credit_note_sequence"/>
|
||||
<field name="out_credit_note_sequence"/>
|
||||
<label name="in_credit_note_sequence"/>
|
||||
<field name="in_credit_note_sequence"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
-244
@@ -8,149 +8,6 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<menuitem name="Invoices" parent="account.menu_account"
|
||||
id="menu_invoices" sequence="20"/>
|
||||
|
||||
<record model="ir.ui.view" id="payment_term_view_form">
|
||||
<field name="model">account.invoice.payment_term</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<form string="Payment Term">
|
||||
<label name="name"/>
|
||||
<field name="name"/>
|
||||
<label name="active"/>
|
||||
<field name="active" xexpand="0" width="100"/>
|
||||
<field name="description" colspan="4"/>
|
||||
<field name="lines" colspan="4">
|
||||
<tree string="Payment Term Line" sequence="sequence">
|
||||
<field name="type"/>
|
||||
<field name="percentage"/>
|
||||
<field name="amount"/>
|
||||
<field name="currency"/>
|
||||
<field name="days"/>
|
||||
<field name="delay"/>
|
||||
<field name="sequence" tree_invisible="1"/>
|
||||
<field name="currency_digits" tree_invisible="1"/>
|
||||
</tree>
|
||||
<form string="Payment Term Lines">
|
||||
<label name="type"/>
|
||||
<field name="type"/>
|
||||
<group col="1" id="label_amount_percent">
|
||||
<label name="percentage" fill="1" xexpand="1" expand="1"/>
|
||||
<label name="amount" fill="1" xexpand="1" expand="1"/>
|
||||
</group>
|
||||
<group col="3" id="amount_percent">
|
||||
<field name="percentage" colspan="3"/>
|
||||
<field name="amount"/>
|
||||
<label name="currency"/>
|
||||
<field name="currency"/>
|
||||
</group>
|
||||
<label name="days"/>
|
||||
<field name="days"/>
|
||||
<label name="delay"/>
|
||||
<field name="delay"/>
|
||||
<field name="currency_digits" invisible="1"/>
|
||||
</form>
|
||||
</field>
|
||||
</form>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="payment_term_view_tree">
|
||||
<field name="model">account.invoice.payment_term</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<tree string="Payment Terms">
|
||||
<field name="name" select="1"/>
|
||||
<field name="active" select="1"/>
|
||||
</tree>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.action.act_window" id="act_payment_term_form">
|
||||
<field name="name">Payment Terms</field>
|
||||
<field name="res_model">account.invoice.payment_term</field>
|
||||
<field name="view_type">form</field>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_payment_term_form_view1">
|
||||
<field name="sequence" eval="10"/>
|
||||
<field name="view" ref="payment_term_view_tree"/>
|
||||
<field name="act_window" ref="act_payment_term_form"/>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_payment_term_form_view2">
|
||||
<field name="sequence" eval="20"/>
|
||||
<field name="view" ref="payment_term_view_form"/>
|
||||
<field name="act_window" ref="act_payment_term_form"/>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term">
|
||||
<field name="model" search="[('model', '=', 'account.invoice.payment_term')]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term_account_admin">
|
||||
<field name="model" search="[('model', '=', 'account.invoice.payment_term')]"/>
|
||||
<field name="group" ref="account.group_account_admin"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="True"/>
|
||||
<field name="perm_create" eval="True"/>
|
||||
<field name="perm_delete" eval="True"/>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term_line">
|
||||
<field name="model" search="[('model', '=', 'account.invoice.payment_term.line')]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term_line_account_admin">
|
||||
<field name="model"
|
||||
search="[('model', '=', 'account.invoice.payment_term.line')]"/>
|
||||
<field name="group" ref="account.group_account_admin"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="True"/>
|
||||
<field name="perm_create" eval="True"/>
|
||||
<field name="perm_delete" eval="True"/>
|
||||
</record>
|
||||
|
||||
<menuitem parent="menu_invoices_configuration" action="act_payment_term_form"
|
||||
id="menu_payment_term_form"/>
|
||||
|
||||
<record model="account.invoice.payment_term.line.type"
|
||||
id="payment_term_line_type_fixed">
|
||||
<field name="name">Fixed</field>
|
||||
<field name="code">fixed</field>
|
||||
</record>
|
||||
<record model="account.invoice.payment_term.line.type"
|
||||
id="payment_term_line_type_percent">
|
||||
<field name="name">Percentage</field>
|
||||
<field name="code">percent</field>
|
||||
</record>
|
||||
<record model="account.invoice.payment_term.line.type"
|
||||
id="payment_term_line_type_remainder">
|
||||
<field name="name">Remainder</field>
|
||||
<field name="code">remainder</field>
|
||||
</record>
|
||||
|
||||
<record model="account.invoice.payment_term.line.delay"
|
||||
id="payment_term_line_delay_net_days">
|
||||
<field name="name">Net Days</field>
|
||||
<field name="code">net_days</field>
|
||||
</record>
|
||||
<record model="account.invoice.payment_term.line.delay"
|
||||
id="payment_term_line_delay_end_month">
|
||||
<field name="name">End Month</field>
|
||||
<field name="code">end_month</field>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term_line_type">
|
||||
<field name="model"
|
||||
search="[('model', '=', 'account.invoice.payment_term.line.type')]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
|
||||
<record model="ir.action.wizard" id="wizard_pay_invoice">
|
||||
<field name="name">Pay Invoice</field>
|
||||
<field name="wiz_name">account.invoice.pay_invoice</field>
|
||||
@@ -980,106 +837,6 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="perm_delete" eval="True"/>
|
||||
</record>
|
||||
|
||||
|
||||
<record model="ir.ui.view" id="address_view_tree">
|
||||
<field name="model">party.address</field>
|
||||
<field name="inherit" ref="party.address_view_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/tree/field[@name="active"]" position="after">
|
||||
<field name="invoice" select="2"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="address_view_form">
|
||||
<field name="model">party.address</field>
|
||||
<field name="inherit" ref="party.address_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/group/field[@name="active"]"
|
||||
position="after">
|
||||
<label name="invoice"/>
|
||||
<field name="invoice" xexpand="0" width="25"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="party_view_form">
|
||||
<field name="model">party.party</field>
|
||||
<field name="inherit" ref="party.party_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id="accounting"]/field[@name="vat_number"]"
|
||||
position="after">
|
||||
<separator string="Payment Terms" colspan="4" id="payment_terms"/>
|
||||
<label name="payment_term"/>
|
||||
<field name="payment_term"/>
|
||||
<label name="supplier_payment_term"/>
|
||||
<field name="supplier_payment_term"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="fiscalyear_view_form">
|
||||
<field name="model">account.fiscalyear</field>
|
||||
<field name="inherit" ref="account.fiscalyear_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id="sequences"]/field[@name="post_move_sequence"]"
|
||||
position="after">
|
||||
<newline/>
|
||||
<label name="out_invoice_sequence"/>
|
||||
<field name="out_invoice_sequence"/>
|
||||
<label name="in_invoice_sequence"/>
|
||||
<field name="in_invoice_sequence"/>
|
||||
<label name="out_credit_note_sequence"/>
|
||||
<field name="out_credit_note_sequence"/>
|
||||
<label name="in_credit_note_sequence"/>
|
||||
<field name="in_credit_note_sequence"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="period_view_form">
|
||||
<field name="model">account.period</field>
|
||||
<field name="inherit" ref="account.period_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/field[@name="post_move_sequence"]"
|
||||
position="after">
|
||||
<newline/>
|
||||
<label name="out_invoice_sequence"/>
|
||||
<field name="out_invoice_sequence"/>
|
||||
<label name="in_invoice_sequence"/>
|
||||
<field name="in_invoice_sequence"/>
|
||||
<label name="out_credit_note_sequence"/>
|
||||
<field name="out_credit_note_sequence"/>
|
||||
<label name="in_credit_note_sequence"/>
|
||||
<field name="in_credit_note_sequence"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="pay_invoice_init_view_form">
|
||||
<field name="model">account.invoice.pay_invoice.init</field>
|
||||
<field name="type">form</field>
|
||||
@@ -1218,6 +975,5 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="operand">User/Current Company</field>
|
||||
<field name="rule_group" ref="rule_group_invoice_line"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</tryton>
|
||||
@@ -0,0 +1,57 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="address_view_tree">
|
||||
<field name="model">party.address</field>
|
||||
<field name="inherit" ref="party.address_view_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/tree/field[@name="active"]" position="after">
|
||||
<field name="invoice" select="2"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="address_view_form">
|
||||
<field name="model">party.address</field>
|
||||
<field name="inherit" ref="party.address_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/group/field[@name="active"]"
|
||||
position="after">
|
||||
<label name="invoice"/>
|
||||
<field name="invoice" xexpand="0" width="25"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="party_view_form">
|
||||
<field name="model">party.party</field>
|
||||
<field name="inherit" ref="party.party_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<data>
|
||||
<xpath
|
||||
expr="/form/notebook/page[@id="accounting"]/field[@name="vat_number"]"
|
||||
position="after">
|
||||
<separator string="Payment Terms" colspan="4" id="payment_terms"/>
|
||||
<label name="payment_term"/>
|
||||
<field name="payment_term"/>
|
||||
<label name="supplier_payment_term"/>
|
||||
<field name="supplier_payment_term"/>
|
||||
</xpath>
|
||||
</data>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
@@ -0,0 +1,149 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="payment_term_view_form">
|
||||
<field name="model">account.invoice.payment_term</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<form string="Payment Term">
|
||||
<label name="name"/>
|
||||
<field name="name"/>
|
||||
<label name="active"/>
|
||||
<field name="active" xexpand="0" width="100"/>
|
||||
<field name="description" colspan="4"/>
|
||||
<field name="lines" colspan="4">
|
||||
<tree string="Payment Term Line" sequence="sequence">
|
||||
<field name="type"/>
|
||||
<field name="percentage"/>
|
||||
<field name="amount"/>
|
||||
<field name="currency"/>
|
||||
<field name="days"/>
|
||||
<field name="delay"/>
|
||||
<field name="sequence" tree_invisible="1"/>
|
||||
<field name="currency_digits" tree_invisible="1"/>
|
||||
</tree>
|
||||
<form string="Payment Term Lines">
|
||||
<label name="type"/>
|
||||
<field name="type"/>
|
||||
<group col="1" id="label_amount_percent">
|
||||
<label name="percentage" fill="1" xexpand="1" expand="1"/>
|
||||
<label name="amount" fill="1" xexpand="1" expand="1"/>
|
||||
</group>
|
||||
<group col="3" id="amount_percent">
|
||||
<field name="percentage" colspan="3"/>
|
||||
<field name="amount"/>
|
||||
<label name="currency"/>
|
||||
<field name="currency"/>
|
||||
</group>
|
||||
<label name="days"/>
|
||||
<field name="days"/>
|
||||
<label name="delay"/>
|
||||
<field name="delay"/>
|
||||
<field name="currency_digits" invisible="1"/>
|
||||
</form>
|
||||
</field>
|
||||
</form>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="payment_term_view_tree">
|
||||
<field name="model">account.invoice.payment_term</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<tree string="Payment Terms">
|
||||
<field name="name" select="1"/>
|
||||
<field name="active" select="1"/>
|
||||
</tree>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.action.act_window" id="act_payment_term_form">
|
||||
<field name="name">Payment Terms</field>
|
||||
<field name="res_model">account.invoice.payment_term</field>
|
||||
<field name="view_type">form</field>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_payment_term_form_view1">
|
||||
<field name="sequence" eval="10"/>
|
||||
<field name="view" ref="payment_term_view_tree"/>
|
||||
<field name="act_window" ref="act_payment_term_form"/>
|
||||
</record>
|
||||
<record model="ir.action.act_window.view" id="act_payment_term_form_view2">
|
||||
<field name="sequence" eval="20"/>
|
||||
<field name="view" ref="payment_term_view_form"/>
|
||||
<field name="act_window" ref="act_payment_term_form"/>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term">
|
||||
<field name="model" search="[('model', '=', 'account.invoice.payment_term')]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term_account_admin">
|
||||
<field name="model" search="[('model', '=', 'account.invoice.payment_term')]"/>
|
||||
<field name="group" ref="account.group_account_admin"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="True"/>
|
||||
<field name="perm_create" eval="True"/>
|
||||
<field name="perm_delete" eval="True"/>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term_line">
|
||||
<field name="model" search="[('model', '=', 'account.invoice.payment_term.line')]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term_line_account_admin">
|
||||
<field name="model"
|
||||
search="[('model', '=', 'account.invoice.payment_term.line')]"/>
|
||||
<field name="group" ref="account.group_account_admin"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="True"/>
|
||||
<field name="perm_create" eval="True"/>
|
||||
<field name="perm_delete" eval="True"/>
|
||||
</record>
|
||||
|
||||
<menuitem parent="menu_invoices_configuration" action="act_payment_term_form"
|
||||
id="menu_payment_term_form"/>
|
||||
|
||||
<record model="account.invoice.payment_term.line.type"
|
||||
id="payment_term_line_type_fixed">
|
||||
<field name="name">Fixed</field>
|
||||
<field name="code">fixed</field>
|
||||
</record>
|
||||
<record model="account.invoice.payment_term.line.type"
|
||||
id="payment_term_line_type_percent">
|
||||
<field name="name">Percentage</field>
|
||||
<field name="code">percent</field>
|
||||
</record>
|
||||
<record model="account.invoice.payment_term.line.type"
|
||||
id="payment_term_line_type_remainder">
|
||||
<field name="name">Remainder</field>
|
||||
<field name="code">remainder</field>
|
||||
</record>
|
||||
|
||||
<record model="account.invoice.payment_term.line.delay"
|
||||
id="payment_term_line_delay_net_days">
|
||||
<field name="name">Net Days</field>
|
||||
<field name="code">net_days</field>
|
||||
</record>
|
||||
<record model="account.invoice.payment_term.line.delay"
|
||||
id="payment_term_line_delay_end_month">
|
||||
<field name="name">End Month</field>
|
||||
<field name="code">end_month</field>
|
||||
</record>
|
||||
<record model="ir.model.access" id="access_payment_term_line_type">
|
||||
<field name="model"
|
||||
search="[('model', '=', 'account.invoice.payment_term.line.type')]"/>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="False"/>
|
||||
<field name="perm_create" eval="False"/>
|
||||
<field name="perm_delete" eval="False"/>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
Reference in new issue
Block a user