Last active
June 23, 2020 23:14
-
-
Save ovnicraft/a5cfb0312b16921a9268a1803f01f818 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def portal_purchase_order_details(self, c_id, upload=None, **kw): | |
... | |
... | |
... | |
order.write(po_values) | |
order.save_quoted_lines() | |
if upload: |
This file contains hidden or 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
class PurchaseOrder(): | |
_inherit = "purchase.order" | |
... | |
... | |
def save_quoted_lines(self): | |
for line in self.order_line: | |
line_data = line.copy_data() | |
self.env['purchase.quoted.line'].create(line_data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment