diff options
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 4 | ||||
| -rwxr-xr-x | indoteknik_custom/views/purchase_order.xml | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index 6aec4074..4a029441 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -61,6 +61,10 @@ class PurchaseOrder(models.Model): is_create_uangmuka = fields.Boolean(string='Uang Muka?') move_id = fields.Many2one('account.move', string='Account Move') logbook_bill_id = fields.Many2one('report.logbook.bill', string='Logbook Bill') + status_printed = fields.Selection([ + ('not_printed', 'Belum Print'), + ('printed', 'Printed') + ], string='Printed?', copy=False, tracking=True) def _prepare_invoice(self): """Prepare the dict of values to create the new invoice for a purchase order. diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 2ae96d7e..08ab8691 100755 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -138,6 +138,7 @@ <field name="matches_so" widget="many2many_tags" optional="hide"/> <field name="is_create_uangmuka" optional="hide"/> <field name="logbook_bill_id" optional="hide"/> + <field name="status_printed" optional="hide"/> </field> </field> </record> @@ -157,6 +158,7 @@ <field name="responsible_ids" widget="many2many_tags" optional="hide"/> <field name="matches_so" widget="many2many_tags" optional="hide"/> <field name="logbook_bill_id" optional="hide"/> + <field name="status_printed" optional="hide"/> </field> </field> </record> |
