[MERGE] forward port branch 9.0 up to bc14f30ecc

This commit is contained in:
Christophe Simonis
2018-09-26 10:17:05 +02:00
4 changed files with 22 additions and 20 deletions
+2
View File
@@ -153,6 +153,8 @@ class AccountAccount(models.Model):
def onchange_internal_type(self):
if self.internal_type in ('receivable', 'payable'):
self.reconcile = True
if self.internal_type == 'liquidity':
self.reconcile = False
@api.multi
@api.depends('name', 'code')
+3 -3
View File
@@ -22,9 +22,9 @@
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
<field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/>
<field name="internal_type" invisible="1" readonly="1"/>
<label for="reconcile"/>
<div>
<field name="reconcile"/>
<label for="reconcile" attrs="{'invisible': [('internal_type','=','liquidity')]}"/>
<div attrs="{'invisible': [('internal_type','=','liquidity')]}">
<field name="reconcile"/>
<button name="action_open_reconcile" class="oe_link" type="object" string=" -> Reconcile" attrs="{'invisible': [('reconcile', '=', False)]}"/>
</div>
<field name="deprecated"/>
@@ -1,20 +1,20 @@
id,code,name,reconcile,user_type_id:id,chart_template_id:id
co_puc_110505,110505,caja general,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_110510,110510,cajas menores,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_110515,110515,moneda extranjera,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_111005,111005,moneda nacional,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_111010,111010,moneda extranjera,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_111505,111505,moneda nacional,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_111510,111510,moneda extranjera,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112005,112005,bancos,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112010,112010,corporaciones de ahorro y vivienda,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112015,112015,organismos cooperativos financieros,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112505,112505,rotatorios moneda nacional,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112510,112510,rotatorios moneda extranjera,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112515,112515,especiales moneda nacional,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112520,112520,especiales moneda extranjera,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112525,112525,de amortización moneda nacional,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112530,112530,de amortización moneda extranjera,TRUE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_110505,110505,caja general,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_110510,110510,cajas menores,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_110515,110515,moneda extranjera,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_111005,111005,moneda nacional,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_111010,111010,moneda extranjera,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_111505,111505,moneda nacional,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_111510,111510,moneda extranjera,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112005,112005,bancos,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112010,112010,corporaciones de ahorro y vivienda,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112015,112015,organismos cooperativos financieros,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112505,112505,rotatorios moneda nacional,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112510,112510,rotatorios moneda extranjera,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112515,112515,especiales moneda nacional,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112520,112520,especiales moneda extranjera,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112525,112525,de amortización moneda nacional,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_112530,112530,de amortización moneda extranjera,FALSE,account.data_account_type_liquidity,l10n_co_chart_template_generic
co_puc_120505,120505,"agricultura, ganadería, caza y silvicultura",FALSE,account.data_account_type_current_assets,l10n_co_chart_template_generic
co_puc_120510,120510,pesca,FALSE,account.data_account_type_current_assets,l10n_co_chart_template_generic
co_puc_120515,120515,explotación de minas y canteras,FALSE,account.data_account_type_current_assets,l10n_co_chart_template_generic
1 id code name reconcile user_type_id:id chart_template_id:id
2 co_puc_110505 110505 caja general TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
3 co_puc_110510 110510 cajas menores TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
4 co_puc_110515 110515 moneda extranjera TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
5 co_puc_111005 111005 moneda nacional TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
6 co_puc_111010 111010 moneda extranjera TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
7 co_puc_111505 111505 moneda nacional TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
8 co_puc_111510 111510 moneda extranjera TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
9 co_puc_112005 112005 bancos TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
10 co_puc_112010 112010 corporaciones de ahorro y vivienda TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
11 co_puc_112015 112015 organismos cooperativos financieros TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
12 co_puc_112505 112505 rotatorios moneda nacional TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
13 co_puc_112510 112510 rotatorios moneda extranjera TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
14 co_puc_112515 112515 especiales moneda nacional TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
15 co_puc_112520 112520 especiales moneda extranjera TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
16 co_puc_112525 112525 de amortización moneda nacional TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
17 co_puc_112530 112530 de amortización moneda extranjera TRUE FALSE account.data_account_type_liquidity l10n_co_chart_template_generic
18 co_puc_120505 120505 agricultura, ganadería, caza y silvicultura FALSE account.data_account_type_current_assets l10n_co_chart_template_generic
19 co_puc_120510 120510 pesca FALSE account.data_account_type_current_assets l10n_co_chart_template_generic
20 co_puc_120515 120515 explotación de minas y canteras FALSE account.data_account_type_current_assets l10n_co_chart_template_generic
@@ -8,7 +8,7 @@
<field name="code">0-111301</field>
<field name="name">0-Cuenta PayPal 1</field>
<field name="user_type_id" ref="account.data_account_type_liquidity"/>
<field name="reconcile" eval="True"/>
<field name="reconcile" eval="False"/>
<field name="chart_template_id" ref="account_chart_template_0"/>
</record>
<record id="account_account_template_0_111401" model="account.account.template">