Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] l10n_uy_account, l10n_uy_edi: Campos exclusivos de cada locacion #100

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion l10n_uy_account/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<field name="inherit_id" ref="account.view_move_form"/>
<field name="arch" type="xml">
<label for="journal_id" position="before">
<field name="l10n_uy_payment_type"/>
<field name="l10n_uy_payment_type" attrs="{'invisible': ('country_code', '!=', 'UY')}"/>
</label>
</field>
</record>
Expand Down
4 changes: 2 additions & 2 deletions l10n_uy_edi/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
</div> -->

<field name="invoice_incoterm_id" position="after">
<field name="l10n_uy_cfe_sale_mod"/>
<field name="l10n_uy_cfe_transport_route"/>
<field name="l10n_uy_cfe_sale_mod" attrs="{'invisible': ('country_code', '!=', 'UY')}"/>
<field name="l10n_uy_cfe_transport_route" attrs="{'invisible': ('country_code', '!=', 'UY')}"/>
</field>

<notebook position="inside">
Expand Down
2 changes: 1 addition & 1 deletion l10n_uy_edi/views/res_company_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<field name="model">res.company</field>
<field type="xml" name="arch">
<notebook>
<page string="DGI / Uruware" name="dgi_uruwuare" groups="base.group_no_one">
<page string="DGI / Uruware" name="dgi_uruwuare" groups="base.group_no_one" attrs="{'invisible': ('country_code', '!=', 'UY')}">
<label for="l10n_uy_ucfe_prod_env"/>
<field name="l10n_uy_ucfe_prod_env" widget="ace"/>
<label for="l10n_uy_ucfe_test_env"/>
Expand Down
2 changes: 1 addition & 1 deletion l10n_uy_edi/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<field name="model">res.partner</field>
<field type="xml" name="arch">
<xpath expr="//field[@name='vat'][hasclass('oe_inline')]" position="after">
<button name="action_l10n_uy_is_electronic_issuer" string="(UY) Is Electronic Issuer?" class="oe_link oe_inline" type="object"/>
<button name="action_l10n_uy_is_electronic_issuer" string="(UY) Is Electronic Issuer?" class="oe_link oe_inline" type="object" attrs="{'invisible': ('l10n_latam_identification_type_id.l10n_uy_dgi_code', '!=', 'False')}"/>
<button name="%(action_partner_update)d" string="(UY) Update From DGI" class="oe_link oe_inline" type="action" attrs="{'invisible': ['|', ('l10n_latam_identification_type_id', '!=', %(l10n_uy_account.it_rut)d), ('vat', '=', False)]}"/>
</xpath>

Expand Down