16 lines
404 B
Python
16 lines
404 B
Python
import random
|
|
|
|
from odoo import models, api, fields
|
|
|
|
|
|
class SaleOrder(models.Model):
|
|
_inherit = "sale.order"
|
|
|
|
cp_order_id = fields.Many2one(
|
|
'purchase_collective.order',
|
|
string='Parent Collective Purchase',
|
|
help='The collective purchase wich this order belongs',
|
|
ondelete='restrict'
|
|
)
|
|
is_cp = fields.Boolean(string="Is part of a Collective Purchase")
|
|
|