Merge pull request #4069 from expsa/maz_purchace_

Maz purchace
This commit is contained in:
mazenmuhamad 2025-07-31 06:11:04 +03:00 committed by GitHub
commit a82efeccc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 451 additions and 395 deletions

View File

@ -62,7 +62,6 @@ class PurchaseOrderLine(models.Model):
_inherit = 'purchase.order.line'
coc_id = fields.Many2one('purchase.coc')
description = fields.Text(string="Order description")
name = fields.Text(string='Product description')

View File

@ -12,9 +12,6 @@
<field name="coc_ids" invisible="1"/>
</button>
</xpath>
<xpath expr="//field[@name='order_line']/tree//field[@name='name']" position="after">
<field name="description"/>
</xpath>
<xpath expr="//field[@name='company_id']" position="after">
<!-- <field name="need_coc"/> -->
<!-- <field name="coc_id" readonly="1"/> -->

File diff suppressed because it is too large Load Diff

View File

@ -935,6 +935,7 @@ class PurchaseOrderLineCustom(models.Model):
choosen = fields.Boolean(string='Purchase', default=True)
department_name = fields.Many2one("hr.department", string="Department Name")
date_end = fields.Date(string="Date End")
description = fields.Text(string="Order description")
def _create_stock_moves(self, picking):
'''

View File

@ -298,6 +298,10 @@
attrs="{'invisible':[('state','in',('done','cancel','waiting', 'sign','purchase'))]}"
string="Choose All"/>
</xpath>
<xpath expr="//field[@name='order_line']/tree//field[@name='name']" position="after">
<field name="description"/>
</xpath>
<!-- delete Purchase Order-->
<xpath expr="//form//notebook//page//field//tree" position="attributes">
<attribute name="delete">true</attribute>