feat: add all remaining models (product map, order, shipment, customer, sync log, conflict, tax/pricelist map, returns)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-03-31 20:08:49 -04:00
parent cd710065c6
commit fdd67c9e51
11 changed files with 253 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
from odoo import fields, models
class WooSyncLog(models.Model):
_name = 'woo.sync.log'
_description = 'WooCommerce Sync Log'
_order = 'create_date desc'
instance_id = fields.Many2one('woo.instance', ondelete='cascade')
sync_type = fields.Selection([
('product', 'Product'),
('order', 'Order'),
('invoice', 'Invoice'),
('inventory', 'Inventory'),
('customer', 'Customer'),
])
direction = fields.Selection([
('odoo_to_woo', 'Odoo \u2192 WooCommerce'),
('woo_to_odoo', 'WooCommerce \u2192 Odoo'),
])
record_ref = fields.Char()
state = fields.Selection([
('success', 'Success'),
('failed', 'Failed'),
('conflict', 'Conflict'),
])
message = fields.Text()
company_id = fields.Many2one(
'res.company', default=lambda self: self.env.company,
)