Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP]sale_exception_credit_limit: Hides default credit limit
closes #656 Signed-off-by: matiasperalta1 <mnp@adhoc.com.ar>
- Loading branch information
1 parent
edf3e3d
commit 35f43dc
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
sale_exception_credit_limit/views/res_config_settings_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="name">res.config.settings.view.form.inherit.sale_exception_credit_limit</field> | ||
<field name="model">res.config.settings</field> | ||
<field name="priority" eval="40"/> | ||
<field name="inherit_id" ref="account.res_config_settings_view_form"/> | ||
<field name="arch" type="xml"> | ||
<!-- Ocultamos default de sale_exception por comportamiento no esperado: | ||
Si seteamos un valor x en default, siempre que esté este seteado en el partner | ||
se inactiva el credit limit. Ocultamos para que quede siempre en 0 y asi replica | ||
lo que hacemos en 15.0 --> | ||
<xpath expr="//field[@name='account_default_credit_limit']" position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |