Skip to content

Commit

Permalink
[ADD] joint_buying_product : add reverse links between tour_line and …
Browse files Browse the repository at this point in the history
…transport_request
  • Loading branch information
legalsylvain committed Oct 31, 2023
1 parent 836edd6 commit 054355a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions joint_buying_product/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
from . import joint_buying_purchase_order_grouped_line
from . import joint_buying_purchase_order
from . import joint_buying_purchase_order_line
from . import joint_buying_tour_line
from . import joint_buying_transport_request
from . import res_config_settings
14 changes: 14 additions & 0 deletions joint_buying_product/models/joint_buying_tour_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (C) 2023-Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import fields, models


class JointBuyingTourLine(models.Model):
_inherit = "joint.buying.tour.line"

transport_request_ids = fields.Many2many(
comodel_name="joint.buying.transport.request",
string="Transport Requests",
)

0 comments on commit 054355a

Please sign in to comment.