This commit is contained in:
gsinghpal
2026-03-09 15:21:22 -04:00
parent a3e85a23ef
commit acd3fc455e
243 changed files with 20459 additions and 4197 deletions

View File

@@ -0,0 +1 @@
from . import sale_order

View File

@@ -0,0 +1,19 @@
from odoo import models
class SaleOrder(models.Model):
_inherit = 'sale.order'
def action_save_as_template(self):
"""Open wizard to save this sale order as a quotation template."""
self.ensure_one()
return {
'name': 'Save as Template',
'type': 'ir.actions.act_window',
'res_model': 'sale.order.save.template.wizard',
'view_mode': 'form',
'target': 'new',
'context': {
'default_sale_order_id': self.id,
},
}