wip purchase_collective.

ToDo: Plantillas de correo, crear picking por supplier
This commit is contained in:
santiky 2022-03-24 09:02:45 +01:00
parent d2ac963ee1
commit 4abeea64a5
Signed by: snt
GPG key ID: A9FD34930EADBE71
13 changed files with 836 additions and 0 deletions

View file

@ -0,0 +1,16 @@
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")