Skip to content

Commit

Permalink
temp rebasing PR 805 (6b5f106)
Browse files Browse the repository at this point in the history
  • Loading branch information
roboadhoc committed Apr 18, 2024
2 parents 1132eea + 6b5f106 commit 6a1ef44
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions portal_sale_distributor/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
from . import mail_thread
from . import product_product
from . import sale_order
from . import sale_order_line
4 changes: 4 additions & 0 deletions portal_sale_distributor/models/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ def _get_view(self, view_id=None, view_type='form', **options):
modifiers['invisible'] = True
node.set("modifiers", json.dumps(modifiers))
return arch, view

def action_update_prices(self):
self = self.sudo()
super().action_update_prices()
13 changes: 13 additions & 0 deletions portal_sale_distributor/models/sale_order_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
##############################################################################
# For copyright and license notices, see __manifest__.py file in module root
# directory
##############################################################################
from odoo import models


class SaleOrderLine(models.Model):
_inherit = 'sale.order.line'

def _compute_purchase_price(self):
self = self.sudo()
super()._compute_purchase_price()

0 comments on commit 6a1ef44

Please sign in to comment.