Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
44c9853
commit ac90414
Showing
6 changed files
with
48 additions
and
3 deletions.
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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from . import account_payment_group | ||
from . import account_payment | ||
from . import res_store |
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
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,16 @@ | ||
############################################################################## | ||
# For copyright and license notices, see __manifest__.py file in module root | ||
# directory | ||
############################################################################## | ||
from odoo import models, fields, api, _ | ||
from odoo.exceptions import ValidationError | ||
|
||
|
||
class ResStore(models.Model): | ||
_inherit = "res.store" | ||
|
||
# agregamos esta opcion para que algunos stores (tipicamente los padres) | ||
# no se puedan seleccionar en los grupos de pagos. Podria ser un atributo global | ||
# pero la verdad que en el lugar principal donde tiene sentido esto es en los grupos de pagos | ||
# y ademas queremos meter cambios en los otros modulos que ya estan estables | ||
hide_on_payments = fields.Boolean() |
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
16 changes: 16 additions & 0 deletions
16
account_payment_group_multi_store/views/res_store_view.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,16 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
|
||
<!-- Form --> | ||
<record id="view_res_store_form" model="ir.ui.view"> | ||
<field name="name">res.store.form</field> | ||
<field name="model">res.store</field> | ||
<field name="inherit_id" ref="base_multi_store.view_res_store_form"/> | ||
<field name="arch" type="xml"> | ||
<field name="only_allow_reonciliaton_of_this_store" position="after"> | ||
<field name="hide_on_payments"/> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</odoo> |