Skip to content

Commit

Permalink
[FIX] partner alternate pricelist
Browse files Browse the repository at this point in the history
  • Loading branch information
yibudak committed Jan 13, 2025
1 parent ccc1929 commit 751e979
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions altinkaya_sales/models/product_pricelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ class ProductPricelist(models.Model):
help="Check stock availability for products in this pricelist",
)

alternate_pricelist_id = fields.Many2one(
"product.pricelist",
string="Alternate Pricelist",
help="If set, this pricelist will be showed on the portal account settings",
)

@api.multi
def _compute_price_rule(self, products_qty_partner, date=False, uom_id=False):
"""Low-level method - Mono pricelist, multi products
Expand Down
1 change: 1 addition & 0 deletions altinkaya_sales/views/pricelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<xpath expr="//field[@name='currency_id']" position="after">
<field name="list_type_use"/>
<field name="allow_check_stock" />
<field name="alternate_pricelist_id" />
</xpath>
</field>
</record>
Expand Down

0 comments on commit 751e979

Please sign in to comment.