added export button

This commit is contained in:
2026-02-20 16:41:27 +03:30
parent 569b66a623
commit b88af8605c
12 changed files with 158 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,13 @@
from odoo import models
class MrpProduction(models.Model):
_inherit = "mrp.production"
def action_export_xlsx(self):
self.ensure_one()
return {
"type": "ir.actions.act_url",
"url": f"/mrp/production/{self.id}/export_xlsx",
"target": "self",
}