Browse Source

[IMP] 2035 tax return

16.0
RemiFr82 3 months ago
parent
commit
f7fd77faf0
  1. 27
      l10n_fr_tax_return/data/account_tax_return.xml
  2. 2
      l10n_fr_tax_return/i18n/fr.po
  3. 5
      l10n_fr_tax_return/models/account_account.py
  4. 4
      l10n_fr_tax_return/views/account_tax_return.xml

27
l10n_fr_tax_return/data/account_tax_return.xml

@ -1,12 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- <data> -->
<!-- <data noupdate="1"> -->
<data>
<!-- Result lines -->
<record id="atr_line_cp" model="account.tax.return" forcecreate="0">
<field name="name">Ligne CP (CR if &lt; 0)</field>
<field name="is_sum_line" eval="True" />
</record>
<record id="atr_line_ch" model="account.tax.return" forcecreate="0">
<field name="name">Ligne CH</field>
<field name="sub_line_id" ref="atr_line_cp" />
</record>
<record id="atr_line_ca" model="account.tax.return" forcecreate="0">
<field name="name">Ligne CA (CF if &lt; 0)</field>
<field name="add_line_id" ref="atr_line_cp" />
<field name="is_sum_line" eval="True" />
</record>
<!-- Revenue lines -->
<record id="atr_line_ag" model="account.tax.return" forcecreate="0">
<field name="name">Ligne AG</field>
<field name="add_line_id" ref="atr_line_ca" />
<field name="is_sum_line" eval="True" />
<field name="line_type">credit</field>
</record>
@ -57,6 +76,7 @@
<record id="atr_line_br" model="account.tax.return" forcecreate="0">
<field name="name">Ligne BR</field>
<field name="sub_line_id" ref="atr_line_ca" />
<field name="is_sum_line" eval="True" />
</record>
@ -87,19 +107,16 @@
<record id="atr_line_bt" model="account.tax.return" forcecreate="0">
<field name="name">Ligne BT</field>
<field name="add_line_id" ref="atr_line_bk" />
<field name="is_sum_line" eval="True" />
</record>
<record id="atr_line_bu" model="account.tax.return" forcecreate="0">
<field name="name">Ligne BU</field>
<field name="add_line_id" ref="atr_line_bk" />
<field name="is_sum_line" eval="True" />
</record>
<record id="atr_line_bz" model="account.tax.return" forcecreate="0">
<field name="name">Ligne BZ</field>
<field name="add_line_id" ref="atr_line_bk" />
<field name="is_sum_line" eval="True" />
</record>
<record id="atr_line_bj" model="account.tax.return" forcecreate="0">

2
l10n_fr_tax_return/i18n/fr.po

@ -197,7 +197,7 @@ msgstr ""
#. module: l10n_fr_tax_return
#: model:ir.model.fields,field_description:l10n_fr_tax_return.field_account_tax_return__is_sum_line
msgid "This line is a sum of other lines"
msgstr "Cette ligne est une somme d'autres lignes"
msgstr "Somme d'autres lignes"
#. module: l10n_fr_tax_return
#: model:ir.model.fields,field_description:l10n_fr_tax_return.field_account_tax_return_year__name

5
l10n_fr_tax_return/models/account_account.py

@ -8,3 +8,8 @@ class AccountAccount(models.Model):
comodel_name="account.tax.return",
string="Tax return line",
)
def name_get(self):
if self._context.get("code_only", False):
return [(aa.id, aa.code) for aa in self]
return super().name_get()

4
l10n_fr_tax_return/views/account_tax_return.xml

@ -10,7 +10,7 @@
<group>
<group name="left">
<field name="name" />
<field name="account_ids" widget="many2many_tags" options="{'no_create':1}" />
<field name="account_ids" widget="many2many_tags" context="{'code_only':1}" options="{'no_create':1}" />
<field name="line_type" widget="radio" options="{'horizontal':true}" />
</group>
<group name="right">
@ -32,7 +32,7 @@
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="account_ids" widget="many2many_tags" />
<field name="account_ids" widget="many2many_tags" context="{'code_only':1}" />
<field name="line_type" />
<field name="is_sum_line" />
</tree>

Loading…
Cancel
Save