mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-22 02:52:08 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
# Copyright 2024 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class Rma(models.Model):
|
||||
|
||||
_inherit = "rma"
|
||||
|
||||
def _prepare_procurement_group_vals(self):
|
||||
res = super()._prepare_procurement_group_vals()
|
||||
if self.move_id.picking_id.customer_id:
|
||||
res["customer_id"] = self.move_id.picking_id.customer_id.id
|
||||
return res
|
||||
Loading…
Add table
Add a link
Reference in a new issue