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:
28
fusion-woo-odoo/fusion_woocommerce/models/woo_conflict.py
Normal file
28
fusion-woo-odoo/fusion_woocommerce/models/woo_conflict.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class WooConflict(models.Model):
|
||||
_name = 'woo.conflict'
|
||||
_description = 'WooCommerce Sync Conflict'
|
||||
|
||||
instance_id = fields.Many2one('woo.instance', required=True, ondelete='cascade')
|
||||
conflict_type = fields.Selection([
|
||||
('product', 'Product'),
|
||||
('customer', 'Customer'),
|
||||
('order', 'Order'),
|
||||
])
|
||||
map_id = fields.Many2one('woo.product.map')
|
||||
customer_id = fields.Many2one('woo.customer')
|
||||
order_id = fields.Many2one('woo.order')
|
||||
field_name = fields.Char()
|
||||
odoo_value = fields.Char()
|
||||
woo_value = fields.Char()
|
||||
resolution = fields.Selection([
|
||||
('pending', 'Pending'),
|
||||
('use_odoo', 'Use Odoo'),
|
||||
('use_woo', 'Use WooCommerce'),
|
||||
], default='pending')
|
||||
resolved_by = fields.Many2one('res.users')
|
||||
company_id = fields.Many2one(
|
||||
'res.company', default=lambda self: self.env.company,
|
||||
)
|
||||
Reference in New Issue
Block a user