Skip to content
Extraits de code Groupes Projets
Valider 0eaa33e5 rédigé par Hugo Trentesaux's avatar Hugo Trentesaux
Parcourir les fichiers

add source of data

parent efea5bae
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -216,6 +216,7 @@ class CommissionImportLine(models.Model): ...@@ -216,6 +216,7 @@ class CommissionImportLine(models.Model):
[ [
{ {
"commission_import_line_id": self.id, "commission_import_line_id": self.id,
"etat": get("ETAT"),
"guarantee_id": self.guarantee_id.id, "guarantee_id": self.guarantee_id.id,
"periode_etat": get("PERIODEETAT"), "periode_etat": get("PERIODEETAT"),
"prime_reversee": get("PRIMEREVERSEE"), "prime_reversee": get("PRIMEREVERSEE"),
...@@ -245,6 +246,7 @@ class CommissionImportLine(models.Model): ...@@ -245,6 +246,7 @@ class CommissionImportLine(models.Model):
[ [
{ {
"commission_import_line_id": self.id, "commission_import_line_id": self.id,
"etat": get("ETAT"),
"guarantee_id": self.guarantee_id.id, "guarantee_id": self.guarantee_id.id,
"share_number": share_number, "share_number": share_number,
"share_unit_price": unit_price, "share_unit_price": unit_price,
...@@ -263,6 +265,7 @@ class CommissionImportLine(models.Model): ...@@ -263,6 +265,7 @@ class CommissionImportLine(models.Model):
[ [
{ {
"commission_import_line_id": self.id, "commission_import_line_id": self.id,
"etat": get("ETAT"),
"guarantee_id": self.guarantee_id.id, "guarantee_id": self.guarantee_id.id,
"amount": get("PRIMEREVERSEE"), "amount": get("PRIMEREVERSEE"),
"date": get("PERIODEETAT"), "date": get("PERIODEETAT"),
......
...@@ -22,3 +22,6 @@ class CommissionLine(models.AbstractModel): ...@@ -22,3 +22,6 @@ class CommissionLine(models.AbstractModel):
ondelete="cascade", ondelete="cascade",
string="Ligne d'import commission", string="Ligne d'import commission",
) )
# information source this line is coming from
etat = fields.Char("État")
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
</xpath> </xpath>
<xpath expr="//list//field[@name='currency_id']" position="after"> <xpath expr="//list//field[@name='currency_id']" position="after">
<field name="periode_etat" optional="show" /> <field name="periode_etat" optional="show" />
<field name="etat" optional="hide" />
</xpath> </xpath>
</field> </field>
</record> </record>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<xpath expr="//notebook//page[@name='Commissions']" position="inside"> <xpath expr="//notebook//page[@name='Commissions']" position="inside">
<field name="commission_ids"> <field name="commission_ids">
<list> <list>
<field name="etat" optional="hide"/>
<field name="periode_etat"/> <field name="periode_etat"/>
<field name="prime_reversee"/> <field name="prime_reversee"/>
<field name="taux_commission"/> <field name="taux_commission"/>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter