diff options
Diffstat (limited to 'fixco_custom/models/purchase_order.py')
| -rw-r--r-- | fixco_custom/models/purchase_order.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/fixco_custom/models/purchase_order.py b/fixco_custom/models/purchase_order.py index 43fe8f6..c745fbe 100644 --- a/fixco_custom/models/purchase_order.py +++ b/fixco_custom/models/purchase_order.py @@ -58,6 +58,18 @@ class PurchaseOrder(models.Model): soo_tax = fields.Float('SOO Tax', copy=False) discount_total = fields.Float('Discount Total', help = 'Total Discount for Each Product', copy=False, default=0.0) + def open_form_multi_create_bills(self): + return { + 'name': _('Create Bills'), + 'type': 'ir.actions.act_window', + 'res_model': 'purchase.order.multi_bills', + 'view_mode': 'form', + 'target': 'new', + 'context': { + 'po_ids': self.ids, + } + } + def _get_fixco_token(self, source='auto'): ICP = self.env['ir.config_parameter'].sudo() TokenLog = self.env['token.log'].sudo() |
