Skip to content

Commit

Permalink
[IMP] pos_disable_pricelist_selection: selectable pricelists
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyasProgrammer committed Dec 15, 2023
1 parent edb9bed commit a6f6a7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pos_disable_pricelist_selection/models/pos_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def onchange_hide_pricelist_button(self):
)

@api.depends(
"hide_pricelist_button", "available_pricelist_ids", "selectable_pricelist_ids"
"hide_pricelist_button", "allowed_pricelist_ids", "selectable_pricelist_ids"
)
def _compute_pricelist_id_domain(self):
for rec in self:
Expand Down
12 changes: 6 additions & 6 deletions pos_disable_pricelist_selection/views/pos_config_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
Make sure Default Pricelist is within selectable pricelists.
</div>
</xpath>
<!-- <field name="pricelist_id" position="before">-->
<!-- <field name="pricelist_id_domain" invisible="1" />-->
<!-- </field>-->
<!-- <field name="pricelist_id" position="attributes">-->
<!-- <attribute name="domain">pricelist_id_domain</attribute>-->
<!-- </field>-->
<field name="pricelist_id" position="before">
<field name="pricelist_id_domain" invisible="1" />
</field>
<field name="pricelist_id" position="attributes">
<attribute name="domain">pricelist_id_domain</attribute>
</field>
</field>
</record>
</odoo>

0 comments on commit a6f6a7b

Please sign in to comment.