work on diet plan

This commit is contained in:
sonal
2020-08-04 11:57:11 +05:30
parent 54472af83b
commit d32f648b75
61 changed files with 2858 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# See LICENSE file for full copyright and licensing details.
from odoo import api, models
class SaleOrder(models.Model):
_inherit = 'sale.order'
@api.model
def create(self, values):
rec = super(SaleOrder, self).create(values)
if self._context.get("is_diet_sale"):
rec.action_confirm()
return rec