feat: extend sale.order, stock.picking, account.move, res.partner with WooCommerce fields

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

View File

@@ -0,0 +1,12 @@
from odoo import models, fields
class AccountMove(models.Model):
_inherit = 'account.move'
woo_order_id = fields.Many2one('woo.order', string='WooCommerce Order')
is_woo_invoice = fields.Boolean(compute='_compute_is_woo_invoice', string='Is WC Invoice')
def _compute_is_woo_invoice(self):
for move in self:
move.is_woo_invoice = bool(move.woo_order_id)