diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-12-22 13:35:26 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-12-22 13:35:26 +0700 |
| commit | 8a10587c8582ed68944634928c9a7c34d3321dbe (patch) | |
| tree | 99d93c45df499d9701e2f31d995d5b7160a34a2f /indoteknik_custom/models/sales_order_purchase_match.py | |
| parent | fbb11ab07e66b28459375af175459c3a23148597 (diff) | |
matches so on po and matches po on so
Diffstat (limited to 'indoteknik_custom/models/sales_order_purchase_match.py')
| -rw-r--r-- | indoteknik_custom/models/sales_order_purchase_match.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sales_order_purchase_match.py b/indoteknik_custom/models/sales_order_purchase_match.py new file mode 100644 index 00000000..f5436335 --- /dev/null +++ b/indoteknik_custom/models/sales_order_purchase_match.py @@ -0,0 +1,22 @@ +from odoo import fields, models, api, _ +from odoo.exceptions import AccessError, UserError, ValidationError +from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT +import logging + +_logger = logging.getLogger(__name__) + + +class SalesOrderPurchaseMatch(models.Model): + _name = 'sales.order.purchase.match' + + sales_order_id = fields.Many2one('sale.order', string='Sale Order', index=True, required=True, ondelete='cascade') + purchase_order_id = fields.Many2one('purchase.order', string='SO') + purchase_line_id = fields.Many2one('purchase.order.line', string='SO Line') + product_id = fields.Many2one('product.product', string='Product') + qty_so = fields.Float(string='Qty SO') + qty_po = fields.Float(string='Qty PO') + # picking_id = fields.Many2one('stock.picking', string='Picking') + # move_id = fields.Many2one('stock.move', string='Move') + # partner_id = fields.Many2one('res.partner', string='Partner') + # partner_invoice_id = fields.Many2one('res.partner', string='Invoice Partner') + # salesperson_id = fields.Many2one('res.users', string='Sales')
\ No newline at end of file |
